import {
    StyleSheet,
    View,
    Text,
} from 'react-native';
import React, { Component, PropTypes } from 'react';
import PxToDp from '../../utils/PxToDp';

class LoadMoreFooter extends Component {
  static propTypes = {
    isLoadAll: PropTypes.bool,
  };
  render() {
    return (
      <View style={styles.footer}>
        <Text style={styles.footerTitle}>{this.props.isLoadAll ? '加载更多' : '没有更多了'}</Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  footer: {
    height: PxToDp(70),
    flex: 1,
    alignItems: 'center',
    backgroundColor: '#F5F5F5',
    paddingTop: PxToDp(27),
  },
});
export default LoadMoreFooter;
